using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class SacculusSpecialMap : EntityTypeConfiguration<SacculusSpecial>
    {
        public SacculusSpecialMap()
        {
            // Primary Key
            this.HasKey(t => t.SS_ID);

            // Properties
            this.Property(t => t.SS_Type)
                .HasMaxLength(50);

            this.Property(t => t.SS_Name)
                .HasMaxLength(100);

            this.Property(t => t.SS_MM)
                .HasMaxLength(20);

            this.Property(t => t.HospitalId)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("SacculusSpecial");
            this.Property(t => t.SS_ID).HasColumnName("SS_ID");
            this.Property(t => t.SS_Type).HasColumnName("SS_Type");
            this.Property(t => t.SS_Name).HasColumnName("SS_Name");
            this.Property(t => t.SS_MM).HasColumnName("SS_MM");
            this.Property(t => t.HospitalId).HasColumnName("HospitalId");
            this.Property(t => t.State).HasColumnName("State");
            this.Property(t => t.create_time).HasColumnName("create_time");
        }
    }
}
